﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using AttTypeDefine;

public class Close : MonoBehaviour {
    private void Awake()
    {
        GlobalHelper.FindGameObjectWithName(gameObject,"Return").GetComponent<Button>().onClick.AddListener(delegate () { this.Return(); });
    }
    void Return()
    {
        GlobalHelper.EGameType = EGameType.Login;
        UnityEngine.SceneManagement.SceneManager.LoadScene("Loading");
    }
}
